package com.contain.minio.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: tianchao
 * @Date: 2021/8/21 22:55
 * @Description:
 */
@Configuration
public class MinioConfiguration {



    @Bean
    public MinioClient minioClient(){
        return MinioClient.builder()
                .endpoint("http:192.168.10.180:9000")
                .credentials("docker123456", "docker123456")
                .build();
    }
}
